-- GENERATED SPELL FOR [Wrath Hammer Construct] --


function spell0_8907(pUnit, Event) --@Flame Cannon,n/a--
pUnit:FullCastSpellOnTarget(15575,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8907', 1500, 1)
end

function spell1_8907(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8907', 625, 1)
end

function Sorts_8907(pUnit, Event)
local choix_sorts_8907 = math.random(0, 1)
if choix_sorts_8907 == 0 then
pUnit:RegisterEvent('spell0_8907', 1, 1)
end
if choix_sorts_8907 == 1 then
pUnit:RegisterEvent('spell1_8907', 1, 1)
end
end

function mob8907_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8907', math.random(1500, 3000), 1)
end

function mob8907_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8907_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8907_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8907, 1, 'mob8907_Action')
RegisterUnitEvent(8907, 2, 'mob8907_Leave')
RegisterUnitEvent(8907, 3, 'mob8907_Kill')
RegisterUnitEvent(8907, 4, 'mob8907_Die')
